/*
 * Created on 2006-2-17
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package cn.com.yinhex.as.util;

import java.util.List;

/**
 * @author Ayou
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class List2DOCS
{
	public static final DOC[] todocs(List list)
	{
		if (list == null)
			return new DOC[0];
		int size = list.size();
		DOC[] docs = new DOC[size];
		for (int i = 0; i < size; i++)
		{
			docs[i] = (DOC) list.get(i);
		}
		return docs;
	}
}
